package com.um2.qualite;

import junit.framework.TestCase;

public class DiskTest extends TestCase {

	private Disk d ;
	private Disk d2 ;
	
	protected void setUp() throws Exception {
	}

	public void testCompareTo() {
		d = new Disk(10) ;
		d2 = new Disk(10) ;
		assertTrue(d.compareTo(d2)==0) ;
	}
	public void testCompareTo2() {
		d = new Disk(5) ;
		d2 = new Disk(10) ;
		assertTrue(d.compareTo(d2)==1) ;		
	}

	public void testCompareTo3() {
		d = new Disk(10) ;
		d2 = new Disk(5) ;
		assertTrue(d.compareTo(d2)==-1) ;
	}
	
	public void testGetSize() {
		d = new Disk(3) ;
		assertTrue(d.getSize()==3) ;
	}

	public void testtoString() {
		d = new Disk(3) ;
		assertTrue(d.toString().equals("XXX")) ;
	}

	
}
